import request from '@/utils/request'

// 查询仓库类型列表
export function listWarehouse_type(query) {
  return request({
    url: '/system/warehouse_type/list',
    method: 'get',
    params: query
  })
}

// 查询仓库类型详细
export function getWarehouse_type(typeId) {
  return request({
    url: '/system/warehouse_type/' + typeId,
    method: 'get'
  })
}

// 新增仓库类型
export function addWarehouse_type(data) {
  return request({
    url: '/system/warehouse_type',
    method: 'post',
    data: data
  })
}

// 修改仓库类型
export function updateWarehouse_type(data) {
  return request({
    url: '/system/warehouse_type',
    method: 'put',
    data: data
  })
}

// 删除仓库类型
export function delWarehouse_type(typeId) {
  return request({
    url: '/system/warehouse_type/' + typeId,
    method: 'delete'
  })
}

// 上传仓库类型图片
export function uploadWarehouse_typeFile(data) {
  return request({
    url: '/common/upload',
    method: 'post',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    data: data
  })
}
